package com.example.administrator.myweiyue.ui.component;

import android.app.Application;

import com.example.administrator.myweiyue.ui.module.AppModule;
import com.example.administrator.myweiyue.ui.module.HttpModule;
import com.google.gson.Gson;

import javax.inject.Singleton;

import dagger.Component;
import retrofit2.Retrofit;

/**
 * Created by Administrator on 2018-01-23.
 */

//modules = {AppModule.class, HttpModule.class}说明这二个model都是全局性的
@Singleton
@Component(modules = {AppModule.class, HttpModule.class})
public interface AppComponent {
    //说明将对象开放给其他Component使用
    Application getApplication();
    Retrofit getRetrofit();
    Gson gson();



//    SharedPreferences sharedPreferences();
}
